#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"
void TestList1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPushBack(plist, 6);
	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);

}

void TestList2()
{
	LTNode* plist = LTInit();

	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPrint(plist);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushFront(plist, 5);
	LTPushFront(plist, 6);
	LTPrint(plist);

	LTPopFront(plist, 1);
	LTPrint(plist);
	LTPopFront(plist, 2);
	LTPopFront(plist, 3);
	LTPopFront(plist, 4);
	LTPopFront(plist, 5);
	LTPopFront(plist, 6);
	LTPrint(plist);

	LTDestrory(plist);
	plist = NULL;
}

int main()
{
	TestList1();
	TestList2();
	return 0;
}